# define _CRT_SECURE_NO_WARNINGS 1
# include<stdio.h>
double power(int x,int y)
{
	double z = 0;
	if (y == 0)
	{
		return 1;
	}
	else if (y > 0)
	{
		z = x * power(x, y - 1);
	}
	else
		z = (1.0 / power(x,- y));
	return z;
}
int main()
{
	int n = 0;
	int k = 0;
	scanf("%d %d", &n,&k);
	printf("%lf", power(n,k));


	return 0;
}